<%@ page contentType="text/html;charset=UTF-8" %>
<%@ include file="/WEB-INF/views/include/taglib.jsp"%>
<html>
<head>
	<title>定时器任务</title>
	<meta name="decorator" content="default"/>
	<script type="text/javascript">
		$(document).ready(function() {
			//$("#name").focus();
			$("#inputForm").validate({
				submitHandler: function(form){
					loading('正在提交，请稍等...');
					form.submit();
				},
				errorContainer: "#messageBox",
				errorPlacement: function(error, element) {
					$("#messageBox").text("输入有误，请先更正。");
					if (element.is(":checkbox")||element.is(":radio")||element.parent().is(".input-append")){
						error.appendTo(element.parent().parent());
					} else {
						error.insertAfter(element);
					}
				}
			});
		});
	</script>
</head>
<body>

	<form:form id="inputForm" modelAttribute="scheduleJobEntity"  method="post" class="form-horizontal btnbottom">
		<form:hidden path="id"/>
		<sys:message content="${message}"/>	
		<div class="panel formbody">
			<div class="panel-body">
				<div class="line">
					<span>基本信息</span>
					<hr style="border: 1px dotted #ddd; width:100%;margin:0px;"/>
				</div>
				<ul class="form-box clearfix">
							<li>
								<p>任务名称：</p>
								<div class="form-right">
									<form:input path="remark" htmlEscape="false" maxlength="255" class="required " readonly="true"/>
								    <span class="help-inline"><font color="red">*</font></span>
								</div>
							</li>
							<li>
								<p>spring bean名称：</p>
								<div class="form-right">
									 <form:input path="beanName" htmlEscape="false" maxlength="200" class="required " readonly="true"/>
								     <span class="help-inline"><font color="red">*</font></span>
								</div>
							</li>
							<li>
								<p>方法名：</p>
								<div class="form-right">
									  <form:input path="methodName" htmlEscape="false" maxlength="100" class="required" readonly="true"/>
								      <span class="help-inline"><font color="red">*</font></span>
								</div>
							</li>
							<li>
								<p>参数：</p>
								<div class="form-right">
									  <form:input path="params" htmlEscape="false" maxlength="2000" class=" " readonly="true"/>
								</div>
							</li>
							<li>
								<p>cron表达式：</p>
								<div class="form-right">
									<form:input path="cronExpression" htmlEscape="false" maxlength="100" class="required" readonly="true"/>
								     <span class="help-inline"><font color="red">*</font></span>
								</div>
							</li>
							<li>
								<p>任务状态：</p>
								<div class="form-right">
								     <c:if test="${scheduleJobEntity.status == '0'}">
								        <input value="正常" type="text" readonly="true"/>
								     </c:if>
									 <c:if test="${scheduleJobEntity.status == '1'}">
								        <input value="暂停" type="text" readonly="true"/>
								     </c:if>
								</div>
							</li>
							<li class="full">
								<p>备注信息：</p>
								<div class="form-right">
									<form:textarea path="remarks" htmlEscape="false" rows="4" maxlength="255" class="" readonly="true"/>
								</div>
							</li>
				</ul>		
			</div>
		</div>
	</form:form>

</body>
</html>